package com.ls.mapper;

import com.ls.dto.UserDto;
import com.ls.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper{

    Integer insert(UserDto userDto);

    Integer delete(Integer id);

    Integer update(UserDto userDto);

    Integer updAvatar(String imageName);

    Integer updPwd(String password);

    User getUser(UserDto userDto);

    User getUserById(Integer id);

    List<User> queryAll(UserDto userDto);

    List<User> queryAllByLimit(Integer offset,Integer limit);

    Integer checkLogin(UserDto userDto);

    User getUserByUserName(String username);


}
